home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / bowling.arc / MENU.BAS (.txt) < prev    next >
Encoding:
GW-BASIC  |  1985-07-12  |  4.9 KB  |  87 lines

  1. 10  REM ============================ MENUBWL =================================
  2. 20  REM This program presents a menu of the programs available on this     ===
  3. 30  REM diskette and allows the user to select a program by moving the     ===
  4. 40  REM cursor to the desired program and pressing ENTER.                  ===
  5. 50  REM ======================================================================
  6. 60  REM  Turn off KEY display, set display width, clear the screen and set ===
  7. 70  REM KEY(10) to reload this menu program when pressed in command mode. ===
  8. 80  REM =====================================================================
  9. 90  KEY OFF:WIDTH 80:CLS:KEY 10,"run "+CHR$(34)+"a:menu"+CHR$(13)
  10. 100  REM =====================================================================
  11. 110  REM Display the menu of the programs available on this diskette.      ===
  12. 120  REM =====================================================================
  13. 130  LOCATE 1,25,0:COLOR 0,7:PRINT " League Secretary's System ";
  14. 140  LOCATE 3,10:COLOR 7,0:PRINT "The following programs are available on this diskette:";
  15. 150  LOCATE 4,30:PRINT "       WEEKLY PROCESSING PROGRAMS"
  16. 160  LOCATE 5,30:PRINT "SCORES     Enter Scores"
  17. 170  LOCATE 6,30:PRINT "RECAP      Print Summary Sheet"
  18. 180  LOCATE 7,30:PRINT " "
  19. 190  LOCATE 8,30:PRINT "       MAINTENANCE PROGRAMS"
  20. 200  LOCATE 9,30:PRINT "CREATE     Initialize League Master Files"
  21. 210  LOCATE 10,30:PRINT "SCHEDULE   Create Master Schedule File"
  22. 220  LOCATE 11,30:PRINT "CHANGE     Update Bowler & Team Headers Records"
  23. 230  LOCATE 12,30:PRINT "PRINT      Print Utility - Tm/Bowler Headers"
  24. 240  LOCATE 13,30:PRINT "DETAIL     Print Utility - Tm/Bowler Detail Rec"
  25. 250  LOCATE 14,30:PRINT "SORTFILE   Sort and Print in Alphabetic Sequence"
  26. 260  LOCATE 15,30:PRINT "RECORDD    Display Record Sheets"
  27. 270  LOCATE 16,30:PRINT "RECORDP    Print Record Sheets"
  28. 280  LOCATE 17,30:PRINT "FINAL      Print Final Standings and Averages"
  29. 290  LOCATE 20,1:PRINT"Use the ";:COLOR 15:PRINT"UP ("CHR$(24)")";:COLOR 7:PRINT" and ";:COLOR 15:PRINT"DOWN ("CHR$(25)")";:COLOR 7:PRINT" arrows to position the cursor to the function"
  30. 300  LOCATE 21,1:PRINT"desired and then press the ";:COLOR 15:PRINT"ENTER ("CHR$(17)CHR$(196)CHR$(217)")";:COLOR 7:PRINT" key."
  31. 310  REM =====================================================================
  32. 320  REM Set up the initial coordinates for the selection arrow.           ===
  33. 330  REM =====================================================================
  34. 340  X=25:Y=5
  35. 350  REM =====================================================================
  36. 360  REM Set up UP and DOWN arrows for moving selection arrow.             ===
  37. 370  REM =====================================================================
  38. 380  KEY(11) ON:KEY(14) ON:ON KEY(11) GOSUB 600:ON KEY(14) GOSUB 650
  39. 390  REM =====================================================================
  40. 400  REM Set up KEY(10) to return to MENU program on A-disk.               ===
  41. 410  REM =====================================================================
  42. 420  KEY(10) ON:ON KEY(10) GOSUB 860
  43. 430  REM =====================================================================
  44. 440  REM Display highlighted selection arrow at Y,X.                       ===
  45. 450  REM =====================================================================
  46. 460  COLOR 31:LOCATE Y,X:PRINT "==>";
  47. 470  POKE 106,0'clear kybd buffer
  48. 480  REM =====================================================================
  49. 490  REM If ENTER is pressed, go to program run routine.                   ===
  50. 500  REM =====================================================================
  51. 510  IF INKEY$ = CHR$(13) THEN BEEP:COLOR 7:CLS:GOTO 700
  52. 520  REM =====================================================================
  53. 530  REM Display the date and time at the bottom of the display.           ===
  54. 540  REM =====================================================================
  55. 550  COLOR 7:LOCATE 25,25:PRINT DATE$,TIME$;
  56. 560  GOTO 460
  57. 570  REM =====================================================================
  58. 580  REM Move the selection arrow up if it isn't at the top of the menu.   ===
  59. 590  REM =====================================================================
  60. 600  BEEP:Y1=CSRLIN:X1=POS(0):LOCATE Y,X:PRINT "   ";:LOCATE Y1,X1:IF Y>5 THEN Y=Y-1
  61. 610  RETURN 460
  62. 620  REM =====================================================================
  63. 630  REM Move the selection arrow down if it isn't at the top of the menu. ===
  64. 640  REM =====================================================================
  65. 650  BEEP:Y1=CSRLIN:X1=POS(0):LOCATE Y,X:PRINT "   ";:LOCATE Y1,X1:IF Y<17 THEN Y=Y+1
  66. 660  RETURN 460
  67. 670  REM =====================================================================
  68. 680  REM Run the selected program. If selection is invalid, return to menu.===
  69. 690  REM =====================================================================
  70. 700  IF Y=5 THEN RUN "A:SCORES"
  71. 710  IF Y=6 THEN RUN "A:RECAP"
  72. 720  IF Y=9 THEN RUN "A:CREATE"
  73. 730  IF Y=10 THEN RUN "A:SCHEDULE"
  74. 740  IF Y=11 THEN RUN "A:CHANGE"
  75. 750  IF Y=12 THEN RUN "A:PRINT"
  76. 760  IF Y=13 THEN RUN "A:DETAIL"
  77. 770  IF Y=14 THEN RUN "A:SORTFILE"
  78. 780  IF Y=15 THEN RUN "A:RECORDD"
  79. 790  IF Y=16 THEN RUN "A:RECORDP"
  80. 800  IF Y=17 THEN RUN "A:FINAL"
  81. 810  BEEP:LOCATE 2,1:PRINT "Please make another selection."
  82. 820  FOR I=1 TO 1000:NEXT I:RUN
  83. 830  REM =====================================================================
  84. 840  REM Return to MENU program on the A-disk.                             ===
  85. 850  REM =====================================================================
  86. 860  COLOR 7,0:RUN "MENU"
  87.